package com.ssy.lingxi.platform.manage.model.request.shop;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 商城规则请求实体类
 * @author wyx
 * @version 2.0.0
 * @date 2021-09-26
 */
@Data
public class ShopRuleRequest {
    /**
     * 商城规则id
     */
    @NotNull(message = "商城规则id不能为空", groups = {Update.class})
    private Long id;

    /**
     * 会员id
     */
    @NotNull(message = "会员id不能为空", groups = {Add.class})
    private Long memberId;

    /**
     * 会员名称
     */
    @NotEmpty(message = "会员名称不能为空", groups = {Add.class})
    private String memberName;

    /**
     * 会员类型名称
     */
    @NotEmpty(message = "会员类型名称不能为空", groups = {Add.class})
    private String memberTypeName;

    /**
     * 会员角色id
     */
    @NotNull(message = "会员角色id不能为空", groups = {Add.class})
    private Long memberRoleId;

    /**
     * 会员角色名称
     */
    @NotEmpty(message = "会员角色名称不能为空", groups = {Add.class})
    private String roleName;

    /**
     * 会员等级
     */
    @NotNull(message = "会员等级不能为空", groups = {Add.class})
    private Integer level;

    /**
     * 会员等级标签
     */
    @NotEmpty(message = "会员等级标签不能为空", groups = {Add.class})
    private String levelTag;

    /**
     * 状态 0-无效 1-有效
     */
    private Integer status;

    /**
     * 一对多双向关联商城
     */
    private List<ShopRuleDetailRequest> shopList;

    public interface Add {
    }

    public interface Update {
    }
}
